<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="../../static/js/jquery-3.3.1.min.js" th:src="@{/js/jquery-3.3.1.min.js}"></script>
<script src="../../static/business.js" th:src="@{/business.js}"></script>
<link rel="stylesheet" href="/layui/css/layui.css" media="all">

<body>
<h2><strong>人员列表</strong></h2>
<div>
    <table border="1" class="layui-table" lay-even="" lay-skin="row">
        <tr>
            <td>序号</td>
            <td>人员</td>
            <td>创建时间</td>
            <td>人员ID</td>
            <td>操作</td>
        </tr>
        <tr th:each="user1,num:${user1List}">
            <td th:text="${num.count}">序号</td>
            <td th:text="${user1.name}">创建人</td>
            <td th:text="${#dates.format(user1.date, 'yyyy-MM-dd')}">创建时间</td>
            <td th:text="${user1.id}">人员ID</td>
            <td>
                <button th:value="${user1.id}" onclick="deleteUser(this)">删除</button>
            </td>
        </tr>
        <button onclick="toSaveUserPage()">Save</button>
    </table>
</div>
</body>
</html>
